import { http } from './http';
import type { TUser } from './dto/demon';
export const getUser = (id?: string) => {
  return http.get('/api/user', {
    params: id,
  });
};

export const postUser = (user: TUser) => {
  console.log('user:', user);
  return http.post('/api/user', user);
};

export const deleteUser = () => {
  return http.delete('/api/user');
};
